<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <title></title>
    <meta name="viewport"
          content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no"/>
    <link rel="stylesheet" href="/static/wechat/css/mui.min.css">
    <style type="text/css">
        .mui-bar-nav {
            background-color: #002849;
        }

        .mui-title {
            color: #B2B055;
        }
    </style>


</head>
<body>
<script src="/static/wechat/js/mui.min.js"></script>
<script type="text/javascript">
    mui.init()
</script>
<div class="mui-content">
    <header class="mui-bar mui-bar-nav">
        <a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left" href="{:url('wechat/Apply/orderList')}"></a>
        <h1 class="mui-title">医疗废物统计系统</h1>
        <a class="mui-icon mui-icon-bars mui-pull-right" href="{:url('wechat/index/index')}"></a>
    </header>
    <div class="title" style="margin-top: 52px;">
        已提交的数据
    </div>
    <!--Card start-->
    <div class="mui-card">
        <ul class="mui-table-view">
            {volist name="order" id="vo"}
            <li class="mui-table-view-cell mui-collapse">
                <a class="mui-navigate-right" href="#">提交时间：{$vo.create_time}
                </a>
                <div class="mui-collapse-content">

                    <ul class="mui-table-view" style="margin-top: 6px;text-align: center;color: #0062CC;">

                        <li class="mui-table-view-cell">
                            <div style="float: left;">
                                <a href="" style="width: 20%;color: blue">感染性废物：</a>
                                <a class="">{$vo.hw_001}</a>
                            </div>
                        </li>

                        <li class="mui-table-view-cell">

                            <div style="float: left;">
                                <a href="" style="width: 20%;color: blue">损伤性废物：</a>
                                <a class="">{$vo.hw_002}</a>
                            </div>
                        </li>

                        <li class="mui-table-view-cell">

                            <div style="float: left;">
                                <a href="" style="width: 20%;color: blue">病理性废物：</a>
                                <a class="">{$vo.hw_003}</a>
                            </div>

                        </li>

                        <li class="mui-table-view-cell">
                            <div style="float: left;">
                                <a href="" style="width: 20%;color: blue">化学性废物：</a>
                                <a class="">{$vo.hw_004}</a>
                            </div>
                        </li>

                        <li class="mui-table-view-cell">
                            <div style="float: left;">
                                <a href="" style="width: 20%;color: blue">为防治动物传染病废物：</a>
                                <a class="">{$vo.hw_900}</a>
                            </div>
                        </li>

                        <li class="mui-table-view-cell">

                            <div style="float: left;">
                                <a href="" style="width: 20%;color: blue">提交时间：</a>
                                <a class="">{$vo.create_time}</a>
                            </div>

                        </li>

                        <li class="mui-table-view-cell">
                            <div style="float: left;">
                                <a href="" style="width: 20%;color: blue">备注信息：</a>
                                <a class="">{$vo.remarks}</a>
                            </div>
                        </li>
                    </ul>
                </div>
            </li>
            {/volist}
        </ul>
    </div>
</div>
<script src="/static/plugins/AdminLTE-2.4/bower_components/jquery/dist/jquery.min.js"></script>
<script src="/static/lib/layer/layer.js"></script>
<script>
    $('.order_change').click(function () {
        var id = $(this).attr('dataid');
        layer.confirm('确定发货吗？',{
            title:'订单发货',
            icon:3,
        },function (index) {
            layer.close(index);
            $.ajax({
                url:"{:url('wechat/express/OrderChange')}",
                type:'post',
                data:{id:id},
                dataType:'json',
                success:function (data) {
                    if(data.code == 1){
                        layer.msg(data.msg,{
                                icon:6,
                                time:2000
                            },function () {
                                location.href=data.url;
                            }
                        );
                    }else{
                        layer.open({
                            title:'发货失败',
                            content:data.msg,
                            icon:5,
                            anim:6
                        });
                    };
                }
            });
        })
    });
</script>
</body>

</html>
